<?php


switch (SystemProperties::$platform) {
	//区分DB
	case 'renren':define('MY_DB_NAME','tryapp_r');break;
	case 'myspace':define('MY_DB_NAME','tryapp_m');break;
	case 'yoka':define('MY_DB_NAME','tryapp_y');break;
	case 'sina':define('MY_DB_NAME','tryapp_s');break;
	default: define('MY_DB_NAME','tryapp_r');break;
}


class DATABASE_CONFIG {

	var $default = array(
	'driver' => 'mysql',
	'persistent' => false,
	#'persistent' => true,
	'cacheQueries' => false,
	'encoding' => 'utf8',
	'host' => 'localhost',
	'login' => 'tryapp',
	'password' => 'tryapp_654321',
	'database' => MY_DB_NAME,
	'prefix' => 'g_',
	);

} 
